﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
using FwProject.Comm.ExcelUtil;

namespace FwProject.Distribution.Dto
{
    [DisplayName(displayName: "线路配送统计导出")]
    public class DistributionLineViewList
    {
        [Display(Name = "线路名称")]
        [DisplayName(displayName: "线路名称")]
        [ExcelDateMember(IsMerged = true)]
        public string LineName { get; set; }

        [Display(Name = "所属工厂")]
        public Guid? FactoryInfoId { get; set; }

        [ExcelDateMember(IsMultiRow = true, IsClass = true)]
        public List<DistributionLineModel> DistributionLineList { get; set; }
    }

    public class DistributionLineModel
    {
        public Guid LineId { get; set; }

        [Display(Name = "型号名称")]
        [DisplayName(displayName: "型号名称")]
        [ExcelDateMember(IsMultiRow = true)]
        public string TypeNumberName { get; set; }
        [Display(Name = "金额")]
        public decimal TotalPrice { get; set; }
        [Display(Name = "配送箱数")]
        [DisplayName(displayName: "配送箱数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Distributioncount { get; set; }
        [Display(Name = "配送套数")]
        [DisplayName(displayName: "配送套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int DistributionSetcount { get; set; }
        [Display(Name = "回收")]
        [DisplayName(displayName: "回收箱数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Recoverycount { get; set; }
        [Display(Name = "回收套数")]
        [DisplayName(displayName: "回收套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int RecoverySetcount { get; set; }
        [Display(Name = "换货")]
        [DisplayName(displayName: "换货箱数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Exchangegoodscount { get; set; }
        [Display(Name = "换货套数")]
        [DisplayName(displayName: "换货套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int ExchangegoodsSetcount { get; set; }
        [Display(Name = "折损")]
        [DisplayName(displayName: "折损套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Damagecount { get; set; }
        [Display(Name = "赠送")]
        [DisplayName(displayName: "赠送箱数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Givecount { get; set; }
        [Display(Name = "赠送套数")]
        [DisplayName(displayName: "赠送套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int GiveSetcount { get; set; }
        [Display(Name = "退箱")]
        [DisplayName(displayName: "退回箱数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Backboxcount { get; set; }
        [Display(Name = "退数")]
        [DisplayName(displayName: "退回套数")]
        [ExcelDateMember(IsMultiRow = true, IsSum = true)]
        public int Backnumbercount { get; set; }

    }
}
